import axiosService from '../http/axiosService.js'

export const doGetCollectionList = (pageSize, pageNo) => {
  return axiosService({
    url: '/backend/recoverList',
    method: 'post',
    data: {
      page_size: pageSize,
      page_no: pageNo
    }
  })
}
export const doFollowRecover = (recoverId, followStatus) => {
  return axiosService({
    url: '/backend/followRecover',
    method: 'post',
    data: {
      recover_id: recoverId,
      follow_status: followStatus
    }
  })
}

export const doUpdateRecover = (recoverId, lastFollowResult, lastRepayWill) => {
  return axiosService({
    url: '/backend/updateRecover',
    method: 'post',
    data: {
      recover_id: recoverId,
      last_follow_result: lastFollowResult,
      last_repay_will: lastRepayWill
    }
  })
}
export const doGetRecoverDetailById = (recoverId) => {
  return axiosService({
    url: '/backend/recoverDetail',
    method: 'post',
    data: {
      recover_id: recoverId
    }
  })
}
